/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author ezubia
 */
import play.*;
import play.jobs.*;
import play.test.*;
import models.*;

@OnApplicationStart
public class Bootstrap extends Job{
    
    public void doJob()
    {
        //Checamos si la base de datos esta vacia
        if(User.count()==0)
        {
            Fixtures.load("initial-data.yml");
        }
    }
    
}
